package Baitap01;

public class Triangle_Entity {
	
	double Side01;
	double Side02;
	double Side03;
    
    public double Area(Triangle_Entity objEntity){
    	
        double p = (objEntity.getSide01()
        		  + objEntity.getSide02()
                  + objEntity.getSide03())/2;
        return Math.sqrt(p*(p-objEntity.getSide01())* 
        				   (p-objEntity.getSide02())*
        				   (p-objEntity.getSide03()));
    }
    
    public double Perimetter(Triangle_Entity objEntity){
        return objEntity.getSide01() + objEntity.getSide02() + objEntity.getSide03();
    }

   
    public double getSide01() {
        return Side01;
    }

    
    public void setSide01(double side01) {
        Side01 = side01;
    }

  
    public double getSide02() {
        return Side02;
    }

    
    public void setSide02(double side02) {
        Side02 = side02;
    }

   
    public double getSide03() {
        return Side03;
    }

    public void setSide03(double side03) {
        Side03 = side03;
    }       
}
